package com.brillilab.service.core.method;

import com.brillilab.domain.enums.common.BoolEnum;
import com.brillilab.domain.po.method.MethodPhase;

import java.util.List;

public interface IMethodPhaseService {
    /**
     * @return boolean
     * @Description: 保存阶段并更新initPahseId属性
     * @Params: [phase, fromType]
     * @author wuzhiyu
     * @date 2019/2/26 17:27
     */
    boolean savePhaseAndUpdateInitId(MethodPhase phase, Integer fromType);

    /**
     * @return java.util.List<com.brillilab.domain.po.method.MethodPhase>
     * @Description: isDelete=null获取全部
     * @Params: [methodIdList, isDelete]
     * @author wuzhiyu
     * @date 2019/2/25 14:13
     */
    List<MethodPhase> listByMethodId(Long methodId, BoolEnum isDelete);

    /**
     * @return boolean
     * @Description: 保存
     * @Params: [phase]
     * @author wuzhiyu
     * @date 2019/2/26 17:26
     */
    boolean save(MethodPhase phase);

    MethodPhase selectById(Long methodPhaseId);
}
